package com.kaizzi.data.jdl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kaizzi.data.common.been.TempBeen;
import com.kaizzi.data.common.been.UserDetailBeen;
import com.kaizzi.data.jdl.entity.CrmMember;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Kzen
 * @Description crm_member
 * @date 2020/9/10
 */
public interface CrmMemberService extends IService<CrmMember> {

    long getUserCount(String startDate,String endDate,String utc);
    long getKing(String startDate,String endDate);
    long getWes(String startDate,String endDate);
    long getTeamCount(String startDate,String endDate);
    List<TempBeen> getAgeDistribute(String startDate, String endDate);
    List<TempBeen> getGenderDistribute(String startDate, String endDate);
    List<TempBeen> getAreaDistribute(String startDate, String endDate);
    List<TempBeen> getVip(String startDate, String endDate);
    long getRegistUser(String startDate, String endDate);
    long getOldUser(String startDate, String endDate);

    List<TempBeen> getUtcGender(String startDate, String endDate);
    List<TempBeen> getUtcAge(String startDate,String endDate);
    List<TempBeen> getUtcArea(String startDate, String endDate);

    long getTeamUser(String startDate, String endDate);
    long getTeamNewUser( String startDate, String endDate);

    List<TempBeen> getLastSportTypeCount( String startDate, String endDate);
    List<TempBeen> getLastSportStatusCount( String startDate, String endDate);
    List<TempBeen> getTeamDemand( String startDate, String endDate);

    List<UserDetailBeen> getCrmUserDetail(String mopenId);

    long getRegistUser2(String startDate, String endDate);
    long getOldUser2(String startDate, String endDate);
    long getTeamNewUser2(String startDate, String endDate);
    long getTeamOldUser2(String startDate, String endDate);

    List<TempBeen> getClubUser(String startDate, String endDate);

//    long getUtcUserCount(String )

    //-------------------分割线--------------------------
    List<CrmMember> findAll();
}
